$space-num: $grid-col-space / 2;

.#{$ns-lyt}grid {overflow-x: hidden;}

.#{$ns-lyt}grid-row {
    width: auto;
	@include clearFloat();

	&.#{$ns-has}space {
		margin-left: - $space-num;
		margin-right: - $space-num;

		& > .#{$ns-lyt}grid-col {
			padding-left: $space-num;
			padding-right: $space-num;
		}
	}
}

.#{$ns-lyt}grid-col {
    float: left;
	box-sizing: border-box;
}

@mixin buildGrid($col) {
	.#{$ns-lyt}grid-col-#{$col} {
		width: 100% / ($grid-num / $col);
	}
}

@for $i from 1 through $grid-num {
	@include buildGrid($i);
}
